package com.example.utils.oss;

public enum ResultEnum {

//    SUCCESS(200, "成功"), // 成功
    ERROR_REQUEST(400, "请求错误"), // 请求错误
    ERROR_SYSTEM(500, "系统异常"), // 系统异常
    ERROR_IGNORE(666, "系统异常"),//忽略信息
    SUCCESS(200, "成功"), // 成功
    ERROR(400, "请求错误"), // 请求错误
    SMS_ERROR(401, "消息异常"), //
    TOKEN_ERROR(431, "token异常"),//
    TOKEN_OAUTH_ERROR(432, "token异常"),//
    NOT_UPLOAD_DATA(4001, "数据上传失败"), //
    USERNAME_NOT_EXIST(4002, "用户名已存在"),//
//    SYSTEM_ERROR(500, "系统异常"), //
    SYSTEM_ERROR(500, "系统加载过慢，请查看网络"), //
    SERVER_ERROR(501, "服务异常"),
    DATA_LOSE(600,"未能找到有效的数据"),
    // SERVER_ERROR(501, "服务异常")
    
    EXAM_ERROR(6001, "未找到考试信息"),
    PARAM_ERROR(6002, "参数错误"),
    
    EXAMINATION_PAPER_ERROR(7001, "试卷错误"),
    EXAMINATION_PAPER_PROBLEM_ERROR(7002, "试卷考题错误"),
    ;//

    private int code;
    private String msg;

    ResultEnum(final int code, final String msg) {

        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return this.code;
    }

    public void setCode(final int code) {
        this.code = code;
    }

    public String getMsg() {
        return this.msg;
    }

    public void setMsg(final String msg) {
        this.msg = msg;
    }

}